// The following ifdef block is the standard way of creating macros which make exporting 
// from a DLL simpler. All files within this DLL are compiled with the DLL_SQLINSERTER_EXPORTS
// symbol defined on the command line. this symbol should not be defined on any project
// that uses this DLL. This way any other project whose source files include this file see 
// DLL_SQLINSERTER_API functions as being imported from a DLL, whereas this DLL sees symbols
// defined with this macro as being exported.
#ifdef DLL_SQLINSERTER_EXPORTS
#define DLL_SQLINSERTER_API __declspec(dllexport)
#else
#define DLL_SQLINSERTER_API __declspec(dllimport)
#endif

#ifndef MAX_PATH
#define MAX_PATH 4096
#endif MAX_PATH

typedef struct tagInsert
{
	wchar_t szConnectionString[MAX_PATH];
	wchar_t szDestination[MAX_PATH];
	HANDLE hDataFile;
	
	// status
	bool bOk;
} TInsert, *PInsert;

extern "C"
{

DLL_SQLINSERTER_API PInsert CreateInsertTest();
typedef PInsert (*TCreateInsertTest)();

}

#ifndef malloc
#define malloc(sz) HeapAlloc(GetProcessHeap(), 0, sz)
#endif //malloc

#ifndef free
#define free(p) HeapFree(GetProcessHeap(), 0, p)
#endif //free




//// This class is exported from the DLL_SqlInserter_Template.dll
//class DLL_SQLINSERTER_API CDLL_SqlInserter_Template {
//public:
//	CDLL_SqlInserter_Template(void);
//	// TODO: add your methods here.
//};
//
//extern DLL_SQLINSERTER_API int nDLL_SqlInserter_Template;
//
//DLL_SQLINSERTER_API int fnDLL_SqlInserter_Template(void);
